package com.yjx.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.pagehelper.PageInfo;
import com.yjx.vo.Owner;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 10657
* @description 针对表【owner】的数据库操作Service
* @createDate 2023-05-10 22:20:21
*/
public interface OwnerService extends IService<Owner> {

     Owner queryOwnerByName(String userName);

    PageInfo<Owner> findOwnerAll(int page, int limit, Owner owner);

    /**
     * 查询分页数据
     *
     * @param page      页码
     * @param pageCount 每页条数
     * @return IPage<Owner>
     */
    IPage<Owner> findListByPage(Integer page, Integer pageCount);


    /**
     * 添加
     *
     * @param owner
     * @return int
     */
    int add(Owner owner);

    /**
     * 删除
     *
     * @param id 主键
     * @return int
     */
    int delete(Long id);

    /**
     * 修改
     *
     * @param owner
     * @return int
     */
    int updateData(Owner owner);

    /**
     * id查询数据
     *
     * @param id id
     * @return Owner
     */
    Owner findById(Long id);

    void deleteOwnerUserByUserName(String username);

    Owner queryOwnerById(long parseLong);
}

